﻿capital = 289

oob = "tabrasa_1936JAP"


if = {
	limit = {
		NOT = { has_dlc = "Thunder at Our Gates" }
	}
	recruit_character = SIA_nangklao_chichalerm
	recruit_character = SIA_chao_phonphayuhasena
	recruit_character = SIA_nangklao_suriyawongse
	recruit_character = SIA_manphya_khanphialong
	recruit_character = SIA_luang_phibunsongkhram #This is Phibun
	recruit_character = SIA_phraya_preechacholayudha
	recruit_character = SIA_phraya_chitnasongkhla

	add_ideas = idea_SIA_army_of_siam
}
recruit_character = SIA_phraya_phahon
recruit_character = SIA_pridi_banomyong
recruit_character = SIA_plaek_phibunsongkhram



recruit_character = SIA_phra_silpasakrakorn
recruit_character = SIA_luang_sinthusongkhramchai
recruit_character = SIA_thawon_thamrongnawasawat

recruit_character = SIA_phraya_thayarnpikart
recruit_character = SIA_phra_vechayanrangsarit


recruit_character = SIA_phraya_wichcitcholathai
recruit_character = SIA_sawat_phutianands
recruit_character = SIA_phraya_chalermarkiart
recruit_character = SIA_kuang_abhayavongsa
recruit_character = SIA_thawee_punyaketu
recruit_character = SIA_phot_bhahalyodin




### PROPAGANDA ###
set_variable = { SIA_new_propaganda_campaign = 0 } #Used to pick a poster slot
set_variable = { SIA_propaganda_campaign_to_remove = 0 } #Used to reset a poster slot
set_variable = { SIA_poster_left_icon_frame = constant:propaganda.SIA.propaganda_empty_slot_index } #Set up the appropriate empty slot GFX
set_variable = { SIA_poster_center_icon_frame = constant:propaganda.SIA.propaganda_empty_slot_index } #Set up the appropriate locked slot GFX
set_variable = { SIA_poster_right_icon_frame = constant:propaganda.SIA.propaganda_empty_slot_index } #Set up the appropriate locked slot GFX

set_variable = { SIA_propaganda_cost = constant:propaganda.SIA.propaganda_cost } #Used not only to set the rest of propaganda campaign costs here, but also used to increase each campaign cost after being activated
set_variable = { SIA_propaganda_celebrating_the_constitution_cost = SIA_propaganda_cost } # ID = 2
set_variable = { SIA_propaganda_the_revolution_of_24th_june_cost = SIA_propaganda_cost } # ID = 3
set_variable = { SIA_propaganda_suppressing_the_rebellion_of_1933_cost = SIA_propaganda_cost } # ID = 4
set_variable = { SIA_propaganda_the_king_of_krung_thon_cost = SIA_propaganda_cost } # ID = 5
set_variable = { SIA_propaganda_blood_of_suphan_cost = SIA_propaganda_cost } # ID = 6
set_variable = { SIA_propaganda_thai_soldiers_blood_cost = constant:propaganda.SIA.propaganda_cost_large } # ID = 7
set_variable = { SIA_propaganda_undauntedly_love_nation_cost = constant:propaganda.SIA.propaganda_cost_large } # ID = 8

set_variable = { SIA_propaganda_campaigns_taken = 0 } #Used as a requirement



if = {
	limit = {
		has_dlc = "Thunder at Our Gates"
	}
	#add_ideas = idea_SIA_military_neutral
	#add_ideas = idea_SIA_civilian_neutral
	recruit_character = SIA_phraya_songsuradet
	recruit_character = SIA_rangsit_prayurasakdi
	recruit_character = SIA_luang_wichitwathakan
	recruit_character = SIA_charun_rattanakun_seriroengrit
	recruit_character = SIA_adul_aduldejajaras
	recruit_character = SIA_phichit_kriangsakphichit
	recruit_character = SIA_luang_haansongkhram 
	recruit_character = SIA_mangkorn_phromyothi
	recruit_character = SIA_luang_chawengsaksongkhram
	recruit_character = SIA_aditya_dibabha
	recruit_character = SIA_prince_subhasvasti
	recruit_character = SIA_jira_wichitsongkhram
	recruit_character = SIA_ananda_mahidol
	recruit_character = SIA_prajadhipok
	recruit_character = SIA_rambai_barni
	recruit_character = SIA_bowardej

	recruit_character = SIA_josiah_crosby
	recruit_character = SIA_puey_ungpakorn
	recruit_character = SIA_seni_pramoj
	recruit_character = SIA_prayoon_pamornmontri
	recruit_character = SIA_direk_jayanama
	recruit_character = SIA_phra_sitthi_ruang_dejpol
	recruit_character = SIA_pao_pienlert_boripanyutakit
	recruit_character = SIA_sanguan_tularaksa
	recruit_character = SIA_chao_phraya_sri_dharmathibhet
	recruit_character = SIA_vanich_pananont
	recruit_character = SIA_manopakorn_nitithada
	recruit_character = SIA_damrong_rajanubhab
	recruit_character = SIA_paribatra_sukhumbandhu
	recruit_character = SIA_wan_waithayakon
	recruit_character = SIA_vilas_osathanondh
	recruit_character = SIA_dhani_nivat
	recruit_character = SIA_chamkat_phalangkun
	recruit_character = SIA_phra_bisal_sukhumvit
	recruit_character = SIA_kukrit_pramoj
	recruit_character = SIA_sindh_kamalanavin
	recruit_character = SIA_prayoon_yuthasastrkosol
	recruit_character = SIA_luang_subhachalasai
	recruit_character = SIA_phin_choonhavan
	recruit_character = SIA_tiang_sirikhan
}
if = {
	limit = {
		NOT = { has_dlc = "Thunder at Our Gates" }
	}
	recruit_character = SIA_sindhu_kamalanavin
}
set_variable = { SIA_thai_cultural_mandates_pp_cost = 0 }
set_variable = { SIA_thai_cultural_mandates_pp_cost_base = 40 }
set_variable = { SIA_purged_military_timer = 180 }
set_variable = { SIA_greater_thai_empire_compliance_requirement = 65 }

set_variable = { SIA_chemical_imports_opinion_threshold = 75 }
set_variable = { SIA_agricultural_tax_reduction_cg = 0.2 }
set_variable = { SIA_agricultural_tax_reduction_cg_decrease_rate = 0.01 }
set_variable = { SIA_agricultural_tax_reduction_stability_gain = 0.013 }
set_variable = { SIA_aep_production_speed_arms_factory_factor = 0.05 } #for tt
set_variable = { SIA_aep_min_export = -0.05 }

set_variable = { SIA_contingency_funds_cg = 0.08 }

every_state = {
	limit = {
		OR = {
			state = 1069
			state = 670
			state = 671
			state = 1017
			state = 1068
			state = 286
			state = 1067
			state = 741
			state = 1066
		}
	}

	add_to_array = {
		array = ROOT.indochina_states
		value = THIS
	}
}

every_state = {
	limit = {
		OR = {
			state = 994
			state = 999
			state = 993
			state = 1061
			state = 1065
			state = 1062
			state = 1064
		}
	}

	add_to_array = {
		array = ROOT.malaysia_burma_states
		value = THIS
	}
}


every_core_state = {
	add_to_array = {
		array = ROOT.core_states_at_game_start
	}
}

set_variable = { foreign_diplomatic_relationships_political_advisor_cost_factor = 0 }
set_variable = { foreign_diplomatic_relationships_research_speed_factor = 0 }
set_variable = { foreign_diplomatic_relationships_experience_gain_army = 0 }
set_variable = { foreign_diplomatic_relationships_land_mastery_gain_factor = 0 }
set_variable = { foreign_diplomatic_relationships_production_speed_dockyard_factor = 0 }
set_variable = { foreign_diplomatic_relationships_production_speed_arms_factory_factor = 0 }
set_variable = { foreign_diplomatic_relationships_production_speed_industrial_complex_factor = 0 }
set_variable = { foreign_diplomatic_relationships_production_speed_supply_node_factor = 0 }
set_variable = { foreign_diplomatic_relationships_consumer_goods_factor = 0 }
set_variable = { foreign_diplomatic_relationships_production_factory_start_efficiency_factor = 0 }

set_variable = { who_do_i_like = 0 } # the more negative it is the more I like UK, the more positive it is the more I like jap 
set_variable = { SIA_ananda_study_count = 0 }
set_variable = { global.limited_war_surrender_threshold = 0.2 }

set_variable = { SIA_adc_land_mastery_gain_factor_per_country = 0.02 }
set_variable = { SIA_adc_research_speed_factor_per_country = 0.02 }
set_variable = { SIA_adc_max_command_power_mult_per_country = 0.03 }
set_variable = { SIA_adc_army_defence_factor_per_country = 0.02 }
set_variable = { SIA_adc_max_dig_in_factor_per_country = 0.03 }
set_variable = { SIA_adc_army_org_factor_per_country = 0.02 }
set_variable = { SIA_acd_industrial_capacity_dockyard_per_country = 0.03 }
set_variable = { SIA_acd_industrial_capacity_factory_per_country = 0.03 }
set_variable = { SIA_adc_equipment_conversion_speed_per_country = 0.04 }
set_variable = { SIA_adc_production_lack_of_resource_penalty_factor_per_country = 0.03 }
set_variable = { SIA_adc_production_factory_max_efficiency_factor_per_country = 0.03 }

set_variable = { SIA_achieve_foreign_legitimacy_base_stab_gain = 0.04 }
set_variable = { seri_thai_contats_democratic_drift = 0.1 }
set_variable = { idea_SIA_printing_money_monthly_change = 0.01 }
set_variable = { idea_SIA_printing_money_monthly_change_max = 0.45 }




# Starting tech
set_technology = {
	infantry_weapons = 1
	gw_artillery = 1
	interwar_antiair = 1
	interwar_antitank = 1
	basic_train = 1
	motorised_infantry = 1
	tech_support = 1
	basic_train = 1
	tech_trucks = 1 
}
add_equipment_to_stockpile = { type = train_equipment_1 amount = 75 producer = GER }
if = {
	limit = { has_dlc = "By Blood Alone" }
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			early_bombs = 1
			aircraft_construction = 1
			iw_small_airframe = 1
			iw_medium_airframe = 1
		}
	create_equipment_variant = {
		name = "Hawker Fury" 
		type = small_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = light_mg_2x
			engine_type_slot = engine_1_1x
			special_type_slot_1 = empty
		}
	}
	create_equipment_variant = {
		name = "Handley Page Heyford"
		type = medium_plane_airframe_0
		modules = {
			fixed_main_weapon_slot = medium_bomb_bay
			fixed_auxiliary_weapon_slot_1 = empty
			fixed_auxiliary_weapon_slot_2 = empty
			fixed_auxiliary_weapon_slot_3 = empty
			engine_type_slot = engine_1_2x
			special_type_slot_1 = lmg_defense_turret
			special_type_slot_2 = lmg_defense_turret
			special_type_slot_3 = empty
			special_type_slot_4 = empty
		}
	}	
	else = {
		set_technology = {
			early_fighter = 1
			early_bomber = 1
		}
	}
}	

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = { 
		gwtank = 1
	}
}

if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = { 
		gwtank_chassis = 1
		
	}
}

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		basic_naval_mines = 1
		early_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_battery = 1
		basic_dp_light_battery = 1
		basic_torpedo = 1
		coastal_defense_ships = 1
	}
}
if = {
	limit = { not = { has_dlc = "Man the Guns" } }
	set_technology = {
		early_destroyer = 1
		early_light_cruiser = 1
	}
}

if = {
	limit = { has_dlc = "Man the Guns" }
	# Destroyers #
	create_equipment_variant = {
		name = "Vilun Class"			
		type = ship_hull_light_1
		name_group = SIA_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = dp_light_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = light_ship_engine_1
			fixed_ship_torpedo_slot = ship_torpedo_1
			mid_1_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
	# Light Cruisers #
	create_equipment_variant = {
		name = "Phra Ruang Class"					
		type = ship_hull_cruiser_1
		name_group = SIA_CL_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_medium_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			mid_1_custom_slot = ship_torpedo_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = ship_airplane_launcher_1
		}
	}
	# Costal Defense #
	create_equipment_variant = {
		name = "Sri Ayuthia Class"
		type = ship_hull_cruiser_coastal_defense_ship
		name_group = SIA_CA_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_battery_slot = ship_heavy_battery_1
			fixed_ship_anti_air_slot = ship_anti_air_1
			fixed_ship_fire_control_system_slot = ship_fire_control_system_0
			fixed_ship_radar_slot = empty
			fixed_ship_engine_slot = cruiser_ship_engine_1
			fixed_ship_armor_slot = ship_armor_cruiser_1
			fixed_ship_secondaries_slot = dp_ship_secondaries_1
			mid_1_custom_slot = dp_ship_secondaries_1
			mid_2_custom_slot = empty
			rear_1_custom_slot = empty
		}
	}
}





if = {
	limit = {
		has_dlc = "La Resistance"
	}
	set_technology = {
		armored_car1 = 1
	}
}

set_convoys = 50
set_research_slots = 4
add_political_power = 2000
add_manpower = 50000
add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 10000 }


set_popularities = {
	democratic = 25
	fascism = 25
	communism = 25
	neutrality = 25
}


set_politics = {
	ruling_party = neutrality
	last_election = "1936.1.1"
	election_frequency = 48
	elections_allowed = no
}

1939.1.1 = {
	set_politics = {
		ruling_party = fascism
		last_election = "1936.1.1"
		election_frequency = 48
		elections_allowed = no
	}
	set_popularities = {
		fascism = 100
	}
}
